package com.clouddot.baipai.contract;


import com.clouddot.baipai.http.entity.response.getArcticByIdResponse;
import com.clouddot.baipai.http.entity.response.getArcticListResponse;

import org.wxy.sdk.base.IBaseModel;
import org.wxy.sdk.base.IBasePresenter;
import org.wxy.sdk.base.IBaseView;

import rx.Observable;

/**
 * Created by wxy on 2018/05/27.
 *
 * @author wxy
 */
public interface INewsFragmentContract {

    interface IPresenter extends IBasePresenter {

        void getArcticList(String type, int pageindex, int pagesize);

        void getArcticById(String id);
    }

    interface IModel extends IBaseModel {
        Observable<getArcticListResponse> getArcticList(String acttype, String type, int pageindex, int pagesize);

        Observable<getArcticByIdResponse> getArcticById(String acttype, String id);


    }

    interface IView extends IBaseView {
        void success(int flag, Object object);

        void fail(int flag, String errMsg);
    }
}
